<?php


namespace App\Entity\Member;


use App\Entity\BaseEntity;

/**
 * Class RegisterDto
 * @package App\Entity\Member
 * @property string $mobile
 * @property string $code
 * @property string $password
 */
class RegisterDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'code' => 'required',
            'mobile' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'code.required' => '请输入短信验证码',
            'mobile.required' => '请输入手机号',
        ];
    }
}
